package com.search.es.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
@Data
@Document(indexName = "testgoods",type = "goods")
@AllArgsConstructor
@NoArgsConstructor
public class Goods implements Serializable {
    @Id
    private Integer id;
    private String name;
    private Double price;
}
